export enum QuestionType {
  MULTIPLE_CHOICE = 'MULTIPLE_CHOICE',
  SHORT_ANSWER = 'SHORT_ANSWER',
  ESSAY = 'ESSAY',
  CODE = 'CODE'
}

export enum QuestionDifficulty {
  EASY = 'easy',
  MEDIUM = 'medium',
  HARD = 'hard'
}

export interface CreateQuestionDto {
  title: string;
  content: string;
  type: QuestionType;
  difficulty: QuestionDifficulty;
  category: string;
  options?: string[];
  answer?: string;
  score?: number;
}

export interface UpdateQuestionDto {
  title?: string;
  content?: string;
  type?: QuestionType;
  difficulty?: QuestionDifficulty;
  category?: string;
  options?: string[];
  answer?: string;
  score?: number;
}

export interface Question {
  id: number;
  title: string;
  content: string;
  type: QuestionType;
  difficulty: QuestionDifficulty;
  category: string;
  options?: string[];
  answer?: string;
  score: number;
  createdAt: Date;
  updatedAt: Date;
}
